import Vue from 'vue'
import Router from 'vue-router'
import goods from '@/components/goods/goods'
import ratings from '@/components/ratings/ratings'
import seller from '@/components/seller/seller'
Vue.use(Router)

export default new Router({
	mode: 'history',
	linkActiveClass: 'active',
//linkExactActiveClass: 'active',
  routes: [
    { path: '/', redirect: '/goods' }, // 默认就跳转此页面
    {
      path: '/goods',
      name: 'goods',
      component: goods,
    },
    {
      path: '/ratings',
      name: 'ratings',
      component: ratings
    },
     {
      path: '/seller',
      name: 'seller',
      component: seller
    }
     
     
  ]
})
